#!/usr/bin/env python

import os
import re

def globrecursive(directory):
    """
    directory -> directory (string)

    returns list of files in directory.  Just a wrapper for os.walk()
    """
    l = []
    for dirpath, dirnames, filenames in os.walk(directory):
        l.extend(['/'.join([dirpath, f]) for f in filenames] )
        
    return l

if __name__ == '__main__':
    l = globrecursive('/home/paul/programming')
    for thing in l: print thing
